//
//  MessageDetailView.swift
//  GreenDeal
//
//  Created by Moennig Q on 24/2/2023.
//

import UIKit
import SnapKit
import WebKit
class MessageDetailView: GreenNaviBarView {
    var webView = WKWebView()
    override func setUpView() {
        //
        let contentView = UIView()
        contentView.backgroundColor = .white
        contentView.drawCorner(byRoundingCorners: [.topLeft,.topRight])
        self.addSubview(contentView)
        contentView.snp.makeConstraints { make in
            make.top.equalTo(self.topBackView.snp.bottom).offset(-20)
            make.left.right.bottom.equalToSuperview()
        }
        contentView.addSubview(self.webView)
        self.webView.snp.makeConstraints { make in
            make.top.equalToSuperview()
            make.left.equalTo(20)
            make.right.equalTo(-20)
            make.bottom.equalTo(self.safeAreaLayoutGuide.snp.bottom)
        }
    }

}
